Service Resources Filtering
Sourceβ
The system integrates with the Altinn Resource Registry via: The Resource Registry The returned list is then post-filtered before being shown in the UI.
1. Global Filtering Rules (always applied)β
1.1 Excluded Organizationsβ
Resources from the following organization codes are excluded:
acnβ Accenture (test/development organization)bftβ BrΓΈnnΓΈysund Register Centre test servicesttdβ Test Technology Development services
Business rationale: These organizations primarily provide test services, internal tools, or development resources that should not appear in the production user interface.
1.2 Included Resource Typesβ
Only the following resource types are included in the UI:
GenericAccessResourceβ Generic, non-Studio resourcesAltinnAppβ Altinn 3 applicationsCorrespondenceServiceβ Correspondence services
Business rationale: These types are supported by the UI and represent the service categories end users should interact with.
1.3 Visibility Requirementβ
- Rule: Only resources with
visible: trueare included.
Business rationale: Only resources intended to be shown in the delegation UI make sense to display.
1.4 Delegation Capabilityβ
- Rule: Only resources with
delegable: trueare included.
Business rationale: Ensures the resource can actually be used for delegation and therefore is relevant in the UI.
2. Environment-Specific Test Data Exclusionβ
The system detects the deployment environment and applies additional exclusions to remove test resources.
2.1 Exclude Initial ID Listsβ
- Rule: Resources are excluded if their IDs match an environment-specific list of known test resources (typically identified by obvious test names/titles).
Example lists:
prodTestIDstt02TestIdsat23TestIds
Cf. packages/bff/src/graphql/types/serviceResources/serviceResourceIds.ts
Business rationale: The Resource Registry currently lacks a reliable dedicated flag (e.g. isTestResource) for identifying test resources, so environment-specific ID lists are used as a safeguard.
3. Resource Registry Integrationβ
3.1 URL Parametersβ
-
includeAltinn2=falseβ Excludes legacy Altinn 2 services -
includeApps=trueβ Includes Altinn 3 applications -
includeMigratedApps=trueβ Includes services migrated from Altinn 2 to Altinn 3
4. Maintenance Considerations / Future Improvementsβ
- Test ID arrays (
prodTestIDs,tt02TestIds,at23TestIds) require periodic review and updates. - The organization exclusion list may need updates as new test organizations are created.
- The included resource type list should be revisited if/when new resource types are introduced.
- Long-term goal: the Resource Registry should expose a dedicated flag (e.g.
isTestResource) so test resources can be filtered reliably without maintaining environment-specific ID lists.